#include<iostream>
#include"Udpserver.hpp"

using namespace UdpserverMod;
int main(int argc,char* argv[])
{
    if(argc!=2)
    {
        std::cout<<"Usage: "<<argv[0]<<"locaport "<<std::endl;
        exit(2);
    }
    // std::string ip=argv[1];

    uint16_t port=std::stoi(argv[1]);


    ENABLECONSOLELOG();


    std::unique_ptr<Udpserver> svr_uptr=std::make_unique<Udpserver>(port);

    svr_uptr->Initserver();
  
    svr_uptr->Start();
   
    return 0;
}